package com.gaussian.property.module.biz.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.songqi.common.mybatis.core.dataobject.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 稽核模块中的指标
 * </p>
 *
 * @author songqi(13776346982)
 * @since 2024-04-09
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("check_criteria")
public class CheckCriteria extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 稽核指标id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String checkCriteriaId;

    /**
     * 所属稽核模块id
     */
    private String checkModuleId;

    /**
     * 所属稽核表id
     */
    private String checkTableId;

    /**
     * 指标名称
     */
    private String criteriaName;

    /**
     * 指标分值，可为空
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Double score;


    /**
     * 排序字段。取值范围1-100
     */
    private Integer sortNum;

    /**
     * 是否删除。0-未删除、1-已删除
     */
    @TableLogic(value = "0", delval = "1")
    private Integer isDelete;


}
